<?php


namespace app\common\validate;


use think\Validate;

class Options extends Validate
{
    protected $rule = [
        'name' => 'require|unique:options',
        'type' => 'require',

    ];
    protected $message = [
        'name.require' => '选项名称必须',
        'name.unique' => '该名称已被注册',
        'type.require' => '选项类型必须',
    ];
}